<?php

namespace Modules\Cart\Entities;

use Illuminate\Database\Eloquent\Model;

class Cart extends Model
{
    protected $fillable = ['user_id', 'goods_id', 'channel', 'name', 'qty', 'price', 'total', '__raw_id'];

    protected $casts = [
        'id' => 'integer',
        'user_id' => 'integer',
        'goods_id' => 'integer',
        'qty' => 'integer',
        'price' => 'integer',
        'total' => 'integer',
        'attributes' => 'json',
    ];
}
